<template>
  <div class="home">
    <el-container>
      <Menu :collapse="isCollapse"/>
      <el-container class="content">
        <el-header>
          <Header @switch="isCollapse = !isCollapse"/>
        </el-header>
        <el-main>
          <router-view/>
        </el-main>
        <el-footer>
          <Footer/>
        </el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Menu from "@/components/Menu.vue";
import Header from "@/components/Header.vue";
import Footer from "@/components/Footer.vue";

export default {
  name: "Home",
  components: {Footer, Header, Menu},
  data() {
    return {
      isCollapse: false
    }
  }
}
</script>

<style lang="scss">
.home {
  width: 100%;
  height: 100%;

  .el-container {
    height: 100%;
  }

  .content {
    .el-header {
      padding: 0px;
    }

    .el-main {
      padding: 20px 0px 0px 20px;
      background: #f3f3f4;
    }

    .el-footer {
      padding-left: 0px;
      padding-right: 10px;
    }
  }
}

</style>
